package com.frogs.ucenter.service;

import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSONArray;
import com.frogs.framework.base.service.BaseService;
import com.frogs.ucenter.entity.SubFlowTaskRelation;
import com.frogs.ucenter.entity.TaskInfo;
import com.frogs.ucenter.entity.TaskInfoExt;

public interface TaskInfoService extends BaseService<TaskInfo> {
	JSONArray getPromotionList(int sendCardType, int pageNo, int pageSize);
	
	List<TaskInfoExt> getTaskInfoExtList(Map<String, Object> params);
	
	void insertRelation(SubFlowTaskRelation totalFlowRelation);

	int deleteRelation( Map<String,Object> param );
	
	boolean isExistsTaskRelation(int subFlowId, int sequence);

	JSONArray getRedPackList(int pageNo, int pageSize);
}